package com.sulent.frame.logging.test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogbackExceptionExample {
    private static final Logger logger = LoggerFactory.getLogger(LogbackExceptionExample.class);

    public static void main(String[] args) {
        try {
            throw new RuntimeException("This is a runtime exception");
        } catch (RuntimeException e) {
            logger.error("An exception occurred", e);
        }
    }
}